package com.asset.dispoal.business.bsEvidenceRecognition.service.commom;

import com.asset.dispoal.business.bsEvidenceRecognition.domain.db.mapper.BusinessDataManageMapper;
import com.asset.dispoal.business.bsEvidenceRecognition.dto.EvidenceDeleteRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommand;
import tech.mhuang.pacebox.springboot.protocol.Result;

@Component
@Slf4j
public class DeleteEvidenceCommand implements BaseCommand<EvidenceDeleteRequest, Result> {


    @Autowired
    BusinessDataManageMapper businessDataManageMapper;


    @Override
    public Result execute(EvidenceDeleteRequest request) {
        businessDataManageMapper.deleteEvidence(request);
        return Result.ok();
    }
}
